package com.star.uc.contract.enums;

import com.star.common.core.contract.enums.IEnum;
import com.star.common.kit.enums.EnumValueResolver;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 用户生成验证码类型枚举
 * 如果需要根据code获取desc，请使用
 *
 * @author zhouhengzhe
 * @version 1.0
 * @date 2023/11/17 17:49
 * @see com.star.common.kit.enums.EnumUtils#getByCode(java.lang.Class, java.lang.Object)
 */
@Getter
@AllArgsConstructor
public enum UserGeneratorCodeTypeEnum implements IEnum<Integer>, EnumValueResolver<UserGeneratorCodeTypeEnum, Integer> {

    EMAIL(1, "邮箱"),
    PHONE(2, "手机号"),
    ;

    private final Integer code;
    private final String desc;
}
